import request from '@/utils/request'
import { download} from '@/utils/request'
import { parseStrEmpty } from "@/utils/ruoyi";

// 列表
export function fwprojectList(query) {
  return request({
      url: '/project/fwproject/list',
      method: 'get',
      params: query
  });
}
//新增
export function fwprojectAdd(data) {
    return request({
      url: '/project/fwproject',
      method: 'post',
      data: data
    })
}
//修改
export function fwprojectEdit(data) {
    return request({
      url: '/project/fwproject',
      method: 'put',
      data: data
    })
}
//修改状态
export function updateStatus(query) {
    return request({
        url: '/project/fwproject/updateStatus',
        method: 'get',
        params: query
    });
}
//项目名称下拉列表
export function selectList(query) {
    return request({
        url: '/project/fwproject/select/list',
        method: 'get',
        params: query
    });
}
// 服务项目删除
export function fwprojectDel(ids) {
    return request({
      url: '/project/fwproject/' + ids,
      method: 'delete'
    })
}
// 详情
export function fwprojectDetail(ids) {
    return request({
      url: '/project/fwproject/' + parseStrEmpty(ids),
      method: 'get'
    })
}
// 修改销售量
export function editSoldNum(data) {
  return request({
    url: '/project/fwproject/projectSold',
    method: 'put',
    data: data
  })
}
